
export LIBXML2_INSTALL_HNP_PATH=${HNP_PUBLIC_PATH}/libxml2.org/libxml2_v2.15.0

${CMAKE} \
    -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
    -DCMAKE_INSTALL_PREFIX=${LIBXML2_INSTALL_HNP_PATH} \
    -DLIBXML2_WITH_PYTHON=OFF \
    -DBUILD_SHARED_LIBS=OFF \
    -DLIBXML2_WITH_HTML=ON
    -DLIBXML2_WITH_VALID=ON
    -DLIBXML2_WITH_THREADS=ON

make VERBOSE=1 
make PREFIX=${LIBXML2_INSTALL_HNP_PATH} install


cp hnp.json ${LIBXML2_INSTALL_HNP_PATH}/
pushd ${LIBXML2_INSTALL_HNP_PATH}/../
    ${HNP_TOOL} pack -i ${LIBXML2_INSTALL_HNP_PATH} -o ${ARCHIVE_PATH}/
    tar -zvcf ${ARCHIVE_PATH}/ohos_libxml2_v2.15.0.tar.gz libxml2_v2.15.0/
popd